
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author sai kumar
 */
public class hello 
{
    public static void main(String []args) throws ClassNotFoundException, SQLException
    {
         Class.forName("oracle.jdbc.driver.OracleDriver");
        Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system", "sai");
       Statement st = con.createStatement();
       st.executeUpdate("create table hello(sno char(2))");
    }
    
}
